<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><link rel="stylesheet" type="text/css" href="style.css" /><script type="text/javascript" src="highlight.js"></script></head><body><pre><span class="hs-pragma">{-# LANGUAGE CPP #-}</span><span class="hs-cpp">
#if __GLASGOW_HASKELL__ &gt;= 704
</span><span class="hs-pragma">{-# LANGUAGE Safe #-}</span><span class="hs-cpp">
#elif __GLASGOW_HASKELL__ &gt;= 702
</span><span class="hs-comment">-- System.FilePath in filepath version 1.2.0.1 isn't marked or implied Safe,</span><span>
</span><span id="line-6"></span><span class="hs-comment">-- as shipped with GHC 7.2.</span><span>
</span><span id="line-7"></span><span class="hs-pragma">{-# LANGUAGE Trustworthy #-}</span><span class="hs-cpp">
#endif
</span><span class="hs-comment">------------------------------------------------------------</span><span>
</span><span id="line-10"></span><span class="hs-comment">-- Andy Gill and Colin Runciman, June 2006</span><span>
</span><span id="line-11"></span><span class="hs-comment">------------------------------------------------------------</span><span>
</span><span id="line-12"></span><span>
</span><span id="line-13"></span><span class="hs-comment">-- | Datatypes and file-access routines for the tick data file</span><span>
</span><span id="line-14"></span><span class="hs-comment">-- (@.tix@) used by Hpc.</span><span>
</span><span id="line-15"></span><span class="hs-keyword">module</span><span> </span><span class="hs-identifier">Trace.Hpc.Tix</span><span class="hs-special">(</span><span class="annot"><a href="Trace.Hpc.Tix.html#Tix"><span class="hs-identifier">Tix</span></a></span><span class="hs-special">(</span><span class="hs-glyph">..</span><span class="hs-special">)</span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Trace.Hpc.Tix.html#TixModule"><span class="hs-identifier">TixModule</span></a></span><span class="hs-special">(</span><span class="hs-glyph">..</span><span class="hs-special">)</span><span class="hs-special">,</span><span>
</span><span id="line-16"></span><span>                     </span><span class="annot"><a href="Trace.Hpc.Tix.html#tixModuleName"><span class="hs-identifier">tixModuleName</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Trace.Hpc.Tix.html#tixModuleHash"><span class="hs-identifier">tixModuleHash</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Trace.Hpc.Tix.html#tixModuleTixs"><span class="hs-identifier">tixModuleTixs</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-17"></span><span>                     </span><span class="annot"><a href="Trace.Hpc.Tix.html#readTix"><span class="hs-identifier">readTix</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Trace.Hpc.Tix.html#writeTix"><span class="hs-identifier">writeTix</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Trace.Hpc.Tix.html#getTixFileName"><span class="hs-identifier">getTixFileName</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-18"></span><span>
</span><span id="line-19"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="../../filepath/src/System.FilePath.html#"><span class="hs-identifier">System.FilePath</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../filepath/src/System.FilePath.Windows.html#replaceExtension"><span class="hs-identifier">replaceExtension</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-20"></span><span>
</span><span id="line-21"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="Trace.Hpc.Util.html"><span class="hs-identifier">Trace.Hpc.Util</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Trace.Hpc.Util.html#Hash"><span class="hs-identifier">Hash</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Trace.Hpc.Util.html#catchIO"><span class="hs-identifier">catchIO</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Trace.Hpc.Util.html#readFileUtf8"><span class="hs-identifier">readFileUtf8</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Trace.Hpc.Util.html#writeFileUtf8"><span class="hs-identifier">writeFileUtf8</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-22"></span><span>
</span><span id="line-23"></span><span class="hs-comment">-- | 'Tix' is the storage format for our dynamic information about</span><span>
</span><span id="line-24"></span><span class="hs-comment">-- what boxes are ticked.</span><span>
</span><span id="line-25"></span><span class="hs-keyword">data</span><span> </span><span id="Tix"><span class="annot"><a href="Trace.Hpc.Tix.html#Tix"><span class="hs-identifier hs-var">Tix</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span id="Tix"><span class="annot"><a href="Trace.Hpc.Tix.html#Tix"><span class="hs-identifier hs-var">Tix</span></a></span></span><span> </span><span class="hs-special">[</span><span class="annot"><a href="Trace.Hpc.Tix.html#TixModule"><span class="hs-identifier hs-type">TixModule</span></a></span><span class="hs-special">]</span><span>
</span><span id="line-26"></span><span>        </span><span class="hs-keyword">deriving</span><span> </span><span class="hs-special">(</span><span id="local-6989586621679042459"><span id="local-6989586621679042468"><span id="local-6989586621679042471"><span id="local-6989586621679042473"><span class="annot"><span class="annottext">ReadPrec [Tix]
ReadPrec Tix
Int -&gt; ReadS Tix
ReadS [Tix]
(Int -&gt; ReadS Tix)
-&gt; ReadS [Tix] -&gt; ReadPrec Tix -&gt; ReadPrec [Tix] -&gt; Read Tix
forall a.
(Int -&gt; ReadS a)
-&gt; ReadS [a] -&gt; ReadPrec a -&gt; ReadPrec [a] -&gt; Read a
readListPrec :: ReadPrec [Tix]
$creadListPrec :: ReadPrec [Tix]
readPrec :: ReadPrec Tix
$creadPrec :: ReadPrec Tix
readList :: ReadS [Tix]
$creadList :: ReadS [Tix]
readsPrec :: Int -&gt; ReadS Tix
$creadsPrec :: Int -&gt; ReadS Tix
</span><a href="../../base/src/GHC.Read.html#Read"><span class="hs-identifier hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var">Read</span></a></span></span></span></span></span><span class="hs-special">,</span><span> </span><span id="local-6989586621679042446"><span id="local-6989586621679042448"><span id="local-6989586621679042455"><span class="annot"><span class="annottext">Int -&gt; Tix -&gt; ShowS
[Tix] -&gt; ShowS
Tix -&gt; String
(Int -&gt; Tix -&gt; ShowS)
-&gt; (Tix -&gt; String) -&gt; ([Tix] -&gt; ShowS) -&gt; Show Tix
forall a.
(Int -&gt; a -&gt; ShowS) -&gt; (a -&gt; String) -&gt; ([a] -&gt; ShowS) -&gt; Show a
showList :: [Tix] -&gt; ShowS
$cshowList :: [Tix] -&gt; ShowS
show :: Tix -&gt; String
$cshow :: Tix -&gt; String
showsPrec :: Int -&gt; Tix -&gt; ShowS
$cshowsPrec :: Int -&gt; Tix -&gt; ShowS
</span><a href="../../base/src/GHC.Show.html#Show"><span class="hs-identifier hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var">Show</span></a></span></span></span></span><span class="hs-special">,</span><span> </span><span id="local-6989586621679042438"><span id="local-6989586621679042443"><span class="annot"><span class="annottext">Tix -&gt; Tix -&gt; Bool
(Tix -&gt; Tix -&gt; Bool) -&gt; (Tix -&gt; Tix -&gt; Bool) -&gt; Eq Tix
forall a. (a -&gt; a -&gt; Bool) -&gt; (a -&gt; a -&gt; Bool) -&gt; Eq a
/= :: Tix -&gt; Tix -&gt; Bool
$c/= :: Tix -&gt; Tix -&gt; Bool
== :: Tix -&gt; Tix -&gt; Bool
$c== :: Tix -&gt; Tix -&gt; Bool
</span><span class="hs-identifier hs-var hs-var hs-var hs-var hs-var hs-var">Eq</span></span></span></span><span class="hs-special">)</span><span>
</span><span id="line-27"></span><span>
</span><span id="line-28"></span><span class="hs-keyword">data</span><span> </span><span id="TixModule"><span class="annot"><a href="Trace.Hpc.Tix.html#TixModule"><span class="hs-identifier hs-var">TixModule</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span id="TixModule"><span class="annot"><a href="Trace.Hpc.Tix.html#TixModule"><span class="hs-identifier hs-var">TixModule</span></a></span></span><span>
</span><span id="line-29"></span><span>                 </span><span class="annot"><a href="../../base/src/GHC.Base.html#String"><span class="hs-identifier hs-type">String</span></a></span><span>    </span><span class="hs-comment">--  module name</span><span>
</span><span id="line-30"></span><span>                 </span><span class="annot"><a href="Trace.Hpc.Util.html#Hash"><span class="hs-identifier hs-type">Hash</span></a></span><span>      </span><span class="hs-comment">--  hash number</span><span>
</span><span id="line-31"></span><span>                 </span><span class="annot"><span class="hs-identifier hs-type">Int</span></span><span>       </span><span class="hs-comment">--  length of Tix list (allows pre-allocation at parse time).</span><span>
</span><span id="line-32"></span><span>                 </span><span class="hs-special">[</span><span class="annot"><span class="hs-identifier hs-type">Integer</span></span><span class="hs-special">]</span><span> </span><span class="hs-comment">--  actual ticks</span><span>
</span><span id="line-33"></span><span>        </span><span class="hs-keyword">deriving</span><span> </span><span class="hs-special">(</span><span id="local-6989586621679042413"><span id="local-6989586621679042429"><span id="local-6989586621679042432"><span id="local-6989586621679042434"><span class="annot"><span class="annottext">ReadPrec [TixModule]
ReadPrec TixModule
Int -&gt; ReadS TixModule
ReadS [TixModule]
(Int -&gt; ReadS TixModule)
-&gt; ReadS [TixModule]
-&gt; ReadPrec TixModule
-&gt; ReadPrec [TixModule]
-&gt; Read TixModule
forall a.
(Int -&gt; ReadS a)
-&gt; ReadS [a] -&gt; ReadPrec a -&gt; ReadPrec [a] -&gt; Read a
readListPrec :: ReadPrec [TixModule]
$creadListPrec :: ReadPrec [TixModule]
readPrec :: ReadPrec TixModule
$creadPrec :: ReadPrec TixModule
readList :: ReadS [TixModule]
$creadList :: ReadS [TixModule]
readsPrec :: Int -&gt; ReadS TixModule
$creadsPrec :: Int -&gt; ReadS TixModule
</span><a href="../../base/src/GHC.Read.html#Read"><span class="hs-identifier hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var">Read</span></a></span></span></span></span></span><span class="hs-special">,</span><span> </span><span id="local-6989586621679042395"><span id="local-6989586621679042397"><span id="local-6989586621679042408"><span class="annot"><span class="annottext">Int -&gt; TixModule -&gt; ShowS
[TixModule] -&gt; ShowS
TixModule -&gt; String
(Int -&gt; TixModule -&gt; ShowS)
-&gt; (TixModule -&gt; String)
-&gt; ([TixModule] -&gt; ShowS)
-&gt; Show TixModule
forall a.
(Int -&gt; a -&gt; ShowS) -&gt; (a -&gt; String) -&gt; ([a] -&gt; ShowS) -&gt; Show a
showList :: [TixModule] -&gt; ShowS
$cshowList :: [TixModule] -&gt; ShowS
show :: TixModule -&gt; String
$cshow :: TixModule -&gt; String
showsPrec :: Int -&gt; TixModule -&gt; ShowS
$cshowsPrec :: Int -&gt; TixModule -&gt; ShowS
</span><a href="../../base/src/GHC.Show.html#Show"><span class="hs-identifier hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var">Show</span></a></span></span></span></span><span class="hs-special">,</span><span> </span><span id="local-6989586621679042381"><span id="local-6989586621679042391"><span class="annot"><span class="annottext">TixModule -&gt; TixModule -&gt; Bool
(TixModule -&gt; TixModule -&gt; Bool)
-&gt; (TixModule -&gt; TixModule -&gt; Bool) -&gt; Eq TixModule
forall a. (a -&gt; a -&gt; Bool) -&gt; (a -&gt; a -&gt; Bool) -&gt; Eq a
/= :: TixModule -&gt; TixModule -&gt; Bool
$c/= :: TixModule -&gt; TixModule -&gt; Bool
== :: TixModule -&gt; TixModule -&gt; Bool
$c== :: TixModule -&gt; TixModule -&gt; Bool
</span><span class="hs-identifier hs-var hs-var hs-var hs-var hs-var hs-var">Eq</span></span></span></span><span class="hs-special">)</span><span>
</span><span id="line-34"></span><span>
</span><span id="line-35"></span><span class="hs-comment">-- TODO: Turn extractors below into proper 'TixModule' field-labels</span><span>
</span><span id="line-36"></span><span class="annot"><a href="Trace.Hpc.Tix.html#tixModuleName"><span class="hs-identifier hs-type">tixModuleName</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Trace.Hpc.Tix.html#TixModule"><span class="hs-identifier hs-type">TixModule</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#String"><span class="hs-identifier hs-type">String</span></a></span><span>
</span><span id="line-37"></span><span id="tixModuleName"><span class="annot"><span class="annottext">tixModuleName :: TixModule -&gt; String
</span><a href="Trace.Hpc.Tix.html#tixModuleName"><span class="hs-identifier hs-var hs-var">tixModuleName</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Trace.Hpc.Tix.html#TixModule"><span class="hs-identifier hs-type">TixModule</span></a></span><span> </span><span id="local-6989586621679042378"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679042378"><span class="hs-identifier hs-var">nm</span></a></span></span><span> </span><span class="annot"><span class="annottext">Hash
</span><span class="hs-identifier">_</span></span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-identifier">_</span></span><span> </span><span class="annot"><span class="annottext">[Integer]
</span><span class="hs-identifier">_</span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679042378"><span class="hs-identifier hs-var">nm</span></a></span><span>
</span><span id="line-38"></span><span class="annot"><a href="Trace.Hpc.Tix.html#tixModuleHash"><span class="hs-identifier hs-type">tixModuleHash</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Trace.Hpc.Tix.html#TixModule"><span class="hs-identifier hs-type">TixModule</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Trace.Hpc.Util.html#Hash"><span class="hs-identifier hs-type">Hash</span></a></span><span>
</span><span id="line-39"></span><span id="tixModuleHash"><span class="annot"><span class="annottext">tixModuleHash :: TixModule -&gt; Hash
</span><a href="Trace.Hpc.Tix.html#tixModuleHash"><span class="hs-identifier hs-var hs-var">tixModuleHash</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Trace.Hpc.Tix.html#TixModule"><span class="hs-identifier hs-type">TixModule</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-identifier">_</span></span><span> </span><span id="local-6989586621679042377"><span class="annot"><span class="annottext">Hash
</span><a href="#local-6989586621679042377"><span class="hs-identifier hs-var">h</span></a></span></span><span>  </span><span class="annot"><span class="annottext">Int
</span><span class="hs-identifier">_</span></span><span> </span><span class="annot"><span class="annottext">[Integer]
</span><span class="hs-identifier">_</span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Hash
</span><a href="#local-6989586621679042377"><span class="hs-identifier hs-var">h</span></a></span><span>
</span><span id="line-40"></span><span class="annot"><a href="Trace.Hpc.Tix.html#tixModuleTixs"><span class="hs-identifier hs-type">tixModuleTixs</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Trace.Hpc.Tix.html#TixModule"><span class="hs-identifier hs-type">TixModule</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">[</span><span class="annot"><span class="hs-identifier hs-type">Integer</span></span><span class="hs-special">]</span><span>
</span><span id="line-41"></span><span id="tixModuleTixs"><span class="annot"><span class="annottext">tixModuleTixs :: TixModule -&gt; [Integer]
</span><a href="Trace.Hpc.Tix.html#tixModuleTixs"><span class="hs-identifier hs-var hs-var">tixModuleTixs</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Trace.Hpc.Tix.html#TixModule"><span class="hs-identifier hs-type">TixModule</span></a></span><span>  </span><span class="annot"><span class="annottext">String
</span><span class="hs-identifier">_</span></span><span> </span><span class="annot"><span class="annottext">Hash
</span><span class="hs-identifier">_</span></span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-identifier">_</span></span><span> </span><span id="local-6989586621679042376"><span class="annot"><span class="annottext">[Integer]
</span><a href="#local-6989586621679042376"><span class="hs-identifier hs-var">tixs</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">[Integer]
</span><a href="#local-6989586621679042376"><span class="hs-identifier hs-var">tixs</span></a></span><span>
</span><span id="line-42"></span><span>
</span><span id="line-43"></span><span class="hs-comment">-- We /always/ read and write Tix from the current working directory.</span><span>
</span><span id="line-44"></span><span>
</span><span id="line-45"></span><span class="hs-comment">-- | Read a @.tix@ File.</span><span>
</span><span id="line-46"></span><span class="annot"><a href="Trace.Hpc.Tix.html#readTix"><span class="hs-identifier hs-type">readTix</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#String"><span class="hs-identifier hs-type">String</span></a></span><span>
</span><span id="line-47"></span><span>        </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">IO</span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../base/src/GHC.Maybe.html#Maybe"><span class="hs-identifier hs-type">Maybe</span></a></span><span> </span><span class="annot"><a href="Trace.Hpc.Tix.html#Tix"><span class="hs-identifier hs-type">Tix</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-48"></span><span id="readTix"><span class="annot"><span class="annottext">readTix :: String -&gt; IO (Maybe Tix)
</span><a href="Trace.Hpc.Tix.html#readTix"><span class="hs-identifier hs-var hs-var">readTix</span></a></span></span><span> </span><span id="local-6989586621679042375"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679042375"><span class="hs-identifier hs-var">tixFilename</span></a></span></span><span> </span><span class="hs-glyph">=</span><span>
</span><span id="line-49"></span><span>  </span><span class="annot"><span class="annottext">IO (Maybe Tix) -&gt; (IOException -&gt; IO (Maybe Tix)) -&gt; IO (Maybe Tix)
forall a. IO a -&gt; (IOException -&gt; IO a) -&gt; IO a
</span><a href="Trace.Hpc.Util.html#catchIO"><span class="hs-identifier hs-var">catchIO</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">(String -&gt; Maybe Tix) -&gt; IO String -&gt; IO (Maybe Tix)
forall (f :: * -&gt; *) a b. Functor f =&gt; (a -&gt; b) -&gt; f a -&gt; f b
</span><a href="../../base/src/GHC.Base.html#fmap"><span class="hs-identifier hs-var">fmap</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Tix -&gt; Maybe Tix
forall a. a -&gt; Maybe a
</span><a href="../../base/src/GHC.Maybe.html#Just"><span class="hs-identifier hs-var">Just</span></a></span><span> </span><span class="annot"><span class="annottext">(Tix -&gt; Maybe Tix) -&gt; (String -&gt; Tix) -&gt; String -&gt; Maybe Tix
forall b c a. (b -&gt; c) -&gt; (a -&gt; b) -&gt; a -&gt; c
</span><a href="../../base/src/GHC.Base.html#."><span class="hs-operator hs-var">.</span></a></span><span> </span><span class="annot"><span class="annottext">String -&gt; Tix
forall a. Read a =&gt; String -&gt; a
</span><a href="../../base/src/Text.Read.html#read"><span class="hs-identifier hs-var">read</span></a></span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">(IO String -&gt; IO (Maybe Tix)) -&gt; IO String -&gt; IO (Maybe Tix)
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">String -&gt; IO String
</span><a href="Trace.Hpc.Util.html#readFileUtf8"><span class="hs-identifier hs-var">readFileUtf8</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679042375"><span class="hs-identifier hs-var">tixFilename</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-50"></span><span>          </span><span class="hs-special">(</span><span class="annot"><span class="annottext">IO (Maybe Tix) -&gt; IOException -&gt; IO (Maybe Tix)
forall a b. a -&gt; b -&gt; a
</span><a href="../../base/src/GHC.Base.html#const"><span class="hs-identifier hs-var">const</span></a></span><span> </span><span class="annot"><span class="annottext">(IO (Maybe Tix) -&gt; IOException -&gt; IO (Maybe Tix))
-&gt; IO (Maybe Tix) -&gt; IOException -&gt; IO (Maybe Tix)
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">Maybe Tix -&gt; IO (Maybe Tix)
forall (m :: * -&gt; *) a. Monad m =&gt; a -&gt; m a
</span><a href="../../base/src/GHC.Base.html#return"><span class="hs-identifier hs-var">return</span></a></span><span> </span><span class="annot"><span class="annottext">Maybe Tix
forall a. Maybe a
</span><a href="../../base/src/GHC.Maybe.html#Nothing"><span class="hs-identifier hs-var">Nothing</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-51"></span><span>
</span><span id="line-52"></span><span class="hs-comment">-- | Write a @.tix@ File.</span><span>
</span><span id="line-53"></span><span class="annot"><a href="Trace.Hpc.Tix.html#writeTix"><span class="hs-identifier hs-type">writeTix</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#String"><span class="hs-identifier hs-type">String</span></a></span><span>
</span><span id="line-54"></span><span>         </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Trace.Hpc.Tix.html#Tix"><span class="hs-identifier hs-type">Tix</span></a></span><span>
</span><span id="line-55"></span><span>         </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">IO</span></span><span> </span><span class="hs-special">(</span><span class="hs-special">)</span><span>
</span><span id="line-56"></span><span id="writeTix"><span class="annot"><span class="annottext">writeTix :: String -&gt; Tix -&gt; IO ()
</span><a href="Trace.Hpc.Tix.html#writeTix"><span class="hs-identifier hs-var hs-var">writeTix</span></a></span></span><span> </span><span id="local-6989586621679042371"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679042371"><span class="hs-identifier hs-var">name</span></a></span></span><span> </span><span id="local-6989586621679042370"><span class="annot"><span class="annottext">Tix
</span><a href="#local-6989586621679042370"><span class="hs-identifier hs-var">tix</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; String -&gt; IO ()
</span><a href="Trace.Hpc.Util.html#writeFileUtf8"><span class="hs-identifier hs-var">writeFileUtf8</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679042371"><span class="hs-identifier hs-var">name</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Tix -&gt; String
forall a. Show a =&gt; a -&gt; String
</span><a href="../../base/src/GHC.Show.html#show"><span class="hs-identifier hs-var">show</span></a></span><span> </span><span class="annot"><span class="annottext">Tix
</span><a href="#local-6989586621679042370"><span class="hs-identifier hs-var">tix</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-57"></span><span>
</span><span id="line-58"></span><span class="hs-comment">-- | 'getTixFullName' takes a binary or @.tix@-file name,</span><span>
</span><span id="line-59"></span><span class="hs-comment">-- and normalizes it into a @.tix@-file name.</span><span>
</span><span id="line-60"></span><span class="annot"><a href="Trace.Hpc.Tix.html#getTixFileName"><span class="hs-identifier hs-type">getTixFileName</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#String"><span class="hs-identifier hs-type">String</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#String"><span class="hs-identifier hs-type">String</span></a></span><span>
</span><span id="line-61"></span><span id="getTixFileName"><span class="annot"><span class="annottext">getTixFileName :: ShowS
</span><a href="Trace.Hpc.Tix.html#getTixFileName"><span class="hs-identifier hs-var hs-var">getTixFileName</span></a></span></span><span> </span><span id="local-6989586621679042368"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679042368"><span class="hs-identifier hs-var">str</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; ShowS
</span><a href="../../filepath/src/System.FilePath.Windows.html#replaceExtension"><span class="hs-identifier hs-var">replaceExtension</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679042368"><span class="hs-identifier hs-var">str</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;tix&quot;</span></span><span>
</span><span id="line-62"></span></pre></body></html>